Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw SwordError for unparseable Atom entry swordapp/JavaServer2.0#6 #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pdurbin
Copy link
Contributor

@pdurbin pdurbin commented Oct 21, 2014

By throwing a SwordError when org.apache.abdera.parser.ParseException is thrown from parser.parse(entryPart) I'm able to handle the exception in my application code, as explained in this ticket:

Fix Abdera ArrayIndexOutOfBoundsException with non-existent atom-entry-study.xml in SWORD jar (upstream ideally) · Issue #893 · IQSS/dataverse - IQSS/dataverse#893

In case it's not obvious from the commit message or the title of this pull request, the bug I'm trying to fix on the SWORD library side is this one:

feeding an empty Atom entry file to CollectionAPI.post results in org.apache.abdera.parser.ParseException: java.lang.ArrayIndexOutOfBoundsException · Issue #6 · swordapp/JavaServer2.0 - #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant